package svc

import (
	"github.com/zeromicro/go-zero/zrpc"
	"zkzk2/api/internal/config"
	"zkzk2/zk2rpc/zk2rpcclient"
)

type ServiceContext struct {
	Config config.Config
	Zk2Rpc zk2rpcclient.Zk2rpc
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config: c,
		Zk2Rpc: zk2rpcclient.NewZk2rpc(zrpc.MustNewClient(c.Zk2Rpc)),
	}
}
